package ooday02HomeWork;



public class Student extends Person {

    String classNum;
    String stuId;

    Student(String name, int age, String address, String classNum, String stuId){
        super(name,age,address);
        this.classNum=classNum;
        this.stuId=stuId;
    }

    void study(){
        System.out.println(name+"在学习......");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了，我家住在："+address+
                "班级为:" +classNum+",学号为："+stuId);
    }
}
